package org.asdtiang.exceldemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;

@SpringBootApplication
@Configuration
@EnableElasticsearchRepositories(basePackages = "org.asdtiang.exceldemo.repository")
public class ArmyJobApplication extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(ArmyJobApplication.class);
	}

	public static void main(String[] args) throws Exception {
		SpringApplication.run(ArmyJobApplication.class, args);
	}

}
